{#include main}
{#title}Quarkus REST Endpoints{/title}
{#style}
h5{
 background: gainsboro;
 margin-top: 20px;
 margin-bottom: 20px;
 padding: 10px;
}
.static{
 margin-top: 5px;
}
{/style}
{#body}
 <h5>REST Resources</h5>
 {#for endpoint in info:endpointScores.endpoints}
 <div class="row">
  <div class="col">
   <code>{endpoint.httpMethod} {endpoint.fullPath}</code>
  </div>
 </div>
 {#if !endpoint.produces.isEmpty()}
 <div class="row">
  <div class="col-1"></div>
  <div class="col-1">
   Produces
  </div>
  <div class="col">
   {endpoint.produces}
  </div>
 </div>
 {/if}
 {#if !endpoint.consumes.isEmpty()}
 <div class="row">
  <div class="col-1"></div>
  <div class="col-1">
   Consumes
  </div>
  <div class="col">
   {endpoint.consumes}
  </div>
 </div>
 {/if}
 {/for}
 <h5>Static Resources</h5>
 {#for resource in info:staticResourceInfo.resourceMap.get("/").children.orEmpty}
 <div class="row">
  <div class="col">
   {#if resource.isFolder}
   <i class="far fa-folder-open" style="margin-right:5px; margin-top:5px"></i>
   <a class="static" href="view?path=/{resource.lastName}">
    {resource.lastName}
   </a>
   {#else}
   <i class="fas fa-file-alt" style="margin-right:5px; margin-top:5px"></i>
   <a class="static" href="/{resource.lastName}">
    {resource.lastName}
   </a>
   {/if}
  </div>
 </div>
 {/for}
 <h5>Additional Endpoints</h5>
 {#for additionalEndpoint in info:additionalEndpointInfo}
 <div class="row">
  <div class="col">
   {#if additionalEndpoint.description}
   <a href="{additionalEndpoint.endpoint}">{additionalEndpoint.description}</a>
   {#else}
   <a href="{additionalEndpoint.endpoint}">{additionalEndpoint.endpoint}</a>
   {/if}
  </div>
 </div>
 {/for}
{/body}
{/include}
